PackageImportException Class

Represents an exception caused by adding an invalid package to a PackageStore. This exception will only contain messages appropriate for untrusted callers indicating a problem with the package being imported.

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public class PackageImportException : Exception

Constructors
Name Description
Ð PackageImportException ()

Constructor. Represents a problem occurred when importing a package.

Ï PackageImportException (SerializationInfo, StreamingContext)

Initializes a new instance of the PackageImportException class with serialized data.

Ð PackageImportException (string)

Constructor, providing a custom message.

Ð PackageImportException (string, Exception)

Constructor, providing a message and the exception that triggered this exception.

Ð PackageImportException (string, Exception, ValidationResults)

Constructor, providing a message and the exception that triggered this exception as well a a log of warnings and errors the occurred before the exception.

Ð PackageImportException (string, ValidationResults)

Constructor, provideing a custom message and a log of warnings and errors the occurred before the exception.

Properties
Name Description
Ð Log

Gets and sets the log of errors and warnings that occurred before the package import process was terminated. The log cannot be set to null.

Methods
Name Description
Ð GetObjectData

Retrieve the object data for serialization.